<html>
<head>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
<#include "../inc/commonJs.html">
<script language="JavaScript">
	function saveObj(id){
		var url = "";
		if(id){
			url = '${request.contextPath}/xadmin/work/editWorkLog.do?logid='+id;
		}else{
			url = '${request.contextPath}/xadmin/work/addWorkLog.do';
		}
		$('form').form('submit',{  
		    url:url,
		    onSubmit:function(){
				return $(this).form('validate')
		    },  
		    success:function(data){  
				window.top.closemodalwindow(true,data);
		    }  
		});
	}
	$(function(){
		var url = window.location.href;
		if(url.indexOf('windowparam')!=-1){
			var params = url.substring(url.lastIndexOf('windowparam')+12,url.length);
			if(params!=''&&params!=0){
				$('#projectid').combobox('setValue',params);
			}
		}else{
			$('#projectid').combotree('setValue','${obj.projectid!}');
		}
	})
</script>

</head>
<body>
<form method="post" name="voteForm" id="voteForm">
<table border="0" width="98%" cellspacing="0" cellpadding="4" class="table_all" align=center>
<tr>
	<td width="100" height="25" class="td_table_1">所属项目：</td>
	<td width="*" class="td_table_2">&nbsp;
	<input id="projectid" class="easyui-combotree" name="projectid" style="width:200px;" data-options="panelHeight:110,url:'listProjectForTree.do'" panelHeight="150" />
</tr>
<tr>
	<td class="td_table_1">内容：</td>
	<td class="td_table_2">&nbsp;
		<textarea rows="8" id="content" name="content" style="width:260px;">${obj.content!}</textarea>
	</td>
</tr>
</table>
</form>
</body>
</html>